<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="f" uri="http://www.springframework.org/tags/form"%>

<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title">请登录</h3>
	</div>
	<div class="panel-body">
		<f:form action="users/login" method="POST" id="user"
			cssClass="form-horizontal" modelAttribute="user">
			<div class="form-group">
				<f:label path="name" cssClass="col-md-2 control-label">
					<s:message code="model.user.username" />
				</f:label>
				<div class="col-md-10">
					<f:input path="username" cssClass="form-control" required="required" />
				</div>
			</div>
			<div class="form-group">
				<f:label path="password" cssClass="col-md-2 control-label">
					<s:message code="model.user.password" />
				</f:label>
				<div class="col-md-10">
					<f:password path="password" cssClass="form-control" required="required"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary">
					   <s:message code="views.label.login" />
					</button>
				</div>
			</div>
		</f:form>
	</div>
</div>
